import { defineConfig } from '@vben/vite-config';

export default defineConfig(async () => {
    return {
        application: {},
        vite: {
            server: {
                proxy: {
                    '/api': {
                      changeOrigin: true,
                      ws: true,
                      target: 'http://152.136.29.49:9999',
                      rewrite: (path) => path.replace(/^\/api/, '')
                    },
                },
            },
        },
    };
});
